package com.pyb.common.sms.biz.model;

import java.io.Serializable;
import java.util.ArrayList;

public class SmsMultiSenderResult implements Serializable {
	/*
	{
		"result": 0,
		"errmsg": "OK",
		"ext": "",
		"detail": [
			{
				"result": 0,
				"errmsg": "OK",
				"mobile": "13788888888",
				"nationcode": "86",
				"sid": "xxxxxxx",
				"fee": 1
			},
			{
				"result": 0,
				"errmsg": "OK",
				"mobile": "13788888889",
				"nationcode": "86",
				"sid": "xxxxxxx",
				"fee": 1
			}
		]
	}
	 */

	public int result;
	public String errmsg = "";
	public String ext = "";
	public ArrayList<SmsMultiSenderResultDetail> detail;

	public String toString() {
		return String.format(
				"SmsMultiSenderResult\nresult %d\nerrmsg %s\next %s\ndetail %s",
				result, errmsg, ext, detail);
	}

	public SmsMultiSenderResult() {
	}

	public SmsMultiSenderResult(int result, String errMsg, String ext, ArrayList<SmsMultiSenderResultDetail> detail) {
		this.result = result;
		this.errmsg = errMsg;
		this.ext = ext;
		this.detail = detail;
	}

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public ArrayList<SmsMultiSenderResultDetail> getDetail() {
		return detail;
	}

	public void setDetail(ArrayList<SmsMultiSenderResultDetail> detail) {
		this.detail = detail;
	}
}
